package com.mobile.driver.services {
   import com.flex.util.proxy.BaseProxy;
   import com.mobile.driver.models.RealTimeOrder;
   
   import mx.collections.ArrayCollection;
   
   public class OrderService extends BaseProxy {
      private static const SERVICE_NAME:String = "orderService";
      
      public function OrderService() {
         super(SERVICE_NAME);
      }
      
      public function applyTaxiOrder(
         ids:ArrayCollection,
         driverId:Number,
         callback:Function = null,
         context:Object = null):void {
         callService("applyTaxiOrder", [ids, driverId], callback, context);
      }
      
      public function findRealTimeOrders(
         id:Number,
         callback:Function = null,
         context:Object = null):void {
         callService("findRealTimeTaxiOrdersByDriver", [id], callback, context);
      }
      
      public function findReservedTimeOrders(
         id:Number,
         callback:Function = null,
         context:Object = null):void {
         callService("findReserveTaxiOrdersByDriver", [id], callback, context);
      }
      
      public function findActiveOrders(
         id:Number,
         callback:Function = null,
         context:Object = null):void {
         callService("findActiveTaxiOrdersByDriver", [id], callback, context);
      }
      
      public function findOrders(
         id:Number,
         callback:Function = null,
         context:Object = null):void {
         callService("findTaxiOrdersByDriverId", [id], callback, context);
      }
   }
}